<template>
  <div>
      <span v-for="img in imglist" :key="img.h_id">
          <router-link :to="'/user/registe/'+img.h_id+'/'+img.h_img">
		 <img :src="imgurl+img.h_img"  alt="无法加载了-_-" >
          </router-link>
	  </span>
  </div>
</template>

<script>
export default {
    data(){
        return{    
          imglist:[],
          imgurl:'http://localhost:3000/images/Head/'
        }
    },
    methods:{
        getimg(){
            this.$ajax({
                url:"before/head",
                method:"get",
            }).then(resp=>{
                this.imglist=resp.data.message
            });
        },
    },
    created(){
        this.getimg()
    }
}
</script>

<style scoped>
  span{
      margin-left: 5px;
  }
  img{
      width: 70px;
      height: 70px;
  }
</style>